package java3;

import java.math.BigDecimal;
import java.util.Scanner;

public class Main5 {
	
		public static void main(String[] args){
			@SuppressWarnings("resource")
			Scanner sc = new Scanner(System.in);
			while(sc.hasNext()){
			String m = sc.next();
			String n = sc.next();
			BigDecimal v1 = new BigDecimal(m);
			BigDecimal v2 = new BigDecimal(n);
			System.out.println(v1.add(v2));
			System.out.println(v1.multiply(v2));	
			}
		}
}
